﻿using UnityEngine;
using System.Collections;

namespace Game.Managers
{
    public class GameManager : Singleton<GameManager>
    {


        private GameObject _GameManager;
        private ScenesManager _ScenesManager;
        private UIManager _UIManager;
        private AssetBundleManager _AssetBundleManager;

        void Awake()
        {
           _GameManager = this.gameObject;
           _ScenesManager=gameObject.AddComponent<ScenesManager>();
           _UIManager = gameObject.AddComponent<UIManager>();
           _AssetBundleManager = gameObject.AddComponent<AssetBundleManager>();
        }



        void Start()
        {
            PersistentManagers();
        }


        public void PersistentManagers()
        {
            DontDestroyOnLoad(_GameManager);
        }

        void Update()
        {


        }
    }
}